package com.itheima.static_case.Demo3;

public class Demo3 {
    public static void main(String[] args) {
        // 案例3 - static应用：静态代码块

        System.out.println(Student.name);

        System.out.println(Student.age);


        // 测试实例代码块


        System.out.println("classroom的数量: " + ClassRoom.getCount());


        System.out.println("--------");

        ClassRoom classRoom = new ClassRoom();

        System.out.println("刚刚创建了classroom");

        classRoom.setName("班级1111");
        System.out.println("classroom 的name是：" + classRoom.getName());
    }
}
